package com.yingxin.yxerp.module.common;

/**
 * 类型
 */
public enum DingMsgNoTypeEnum {

    CG("CG", "采购"),
    WX("WX", "维修"),
    ;

    private String type;

    private String typeName;

    DingMsgNoTypeEnum(String type, String typeName) {
        this.type = type;
        this.typeName = typeName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }


    public static DingMsgNoTypeEnum getEnum(String type) {
        for (DingMsgNoTypeEnum t : DingMsgNoTypeEnum.values()) {
            if (t.getType().equals(type)) {
                return t;
            }
        }
        return null;
    }

}